//验证手机号码
export function isValidPhoneNumber(phoneNumber) {
	const regex = /^1[3-9]\d{9}$/
	return regex.test(phoneNumber)
}

//时长转换
export function convertMinutesToHours_minutes(minutes) {
    let hours = Math.floor(minutes / 60);
    let mins = minutes % 60;
    if (hours == 0 && mins == 0) {
      return '-'
    }
    if (hours == 0) {
      return `${mins}分钟`;
    } else if (mins == 0) {
      return `${hours}小时`
    } else {
      return `${hours}小时${mins}分钟`
    }
}